import request from '@/utils/request'

// 查询任务下发列表
export function listTaskIssue(query) {
  return request({
    url: '/gs/taskIssue/list',
    method: 'get',
    params: query
  })
}

// 查询任务下发详细
export function getTaskIssue(id) {
  return request({
    url: '/gs/taskIssue/' + id,
    method: 'get'
  })
}

// 新增任务下发
export function addTaskIssue(data) {
  return request({
    url: '/gs/taskIssue',
    method: 'post',
    data: data
  })
}

// 修改任务下发
export function updateTaskIssue(data) {
  return request({
    url: '/gs/taskIssue',
    method: 'put',
    data: data
  })
}

// 删除任务下发
export function delTaskIssue(id) {
  return request({
    url: '/gs/taskIssue/' + id,
    method: 'delete'
  })
}

// 任务下发审核
export function auditTaskIssue(id) {
  return request({
    url: '/gs/taskIssue/auditTaskIssue/' + id,
    method: 'post'
  })
}
